You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@atlaskit/theme

Package Overview
Dependencies
Maintainers
1
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlaskit/theme

The Atlaskit theme framework


Version published
Weekly downloads
121K
decreased by-21.34%
Maintainers
1
Created
Weekly downloads
 

Package description

What is @atlaskit/theme?

@atlaskit/theme is a theming library provided by Atlassian for creating consistent and customizable themes across Atlassian products. It offers utilities for managing colors, spacing, typography, and other design tokens, making it easier to maintain a cohesive design system.

What are @atlaskit/theme's main functionalities?

Colors

The @atlaskit/theme package provides a set of predefined colors that can be used to maintain consistency across your application. The colors are organized by their usage and intensity.

const { colors } = require('@atlaskit/theme');

const primaryColor = colors.B400;
console.log(primaryColor); // Outputs: #0052CC

Spacing

The package offers a spacing utility based on a grid system. This helps in maintaining consistent spacing throughout the application.

const { gridSize } = require('@atlaskit/theme');

const spacing = gridSize() * 2;
console.log(spacing); // Outputs: 16 (assuming gridSize is 8)

Typography

Typography utilities are provided to ensure consistent font sizes and families across the application. These utilities can be used to style text elements in a uniform manner.

const { fontSize, fontFamily } = require('@atlaskit/theme');

const headingStyle = {
  fontSize: fontSize.heading,
  fontFamily: fontFamily.heading
};
console.log(headingStyle); // Outputs: { fontSize: '24px', fontFamily: 'Arial, sans-serif' }

Theming

The @atlaskit/theme package includes a ThemeProvider component and a useTheme hook to apply and access custom themes throughout your application. This allows for dynamic theming and easy customization.

const { ThemeProvider, useTheme } = require('@atlaskit/theme');

const MyComponent = () => {
  const theme = useTheme();
  return <div style={{ color: theme.colors.text }}>Hello, World!</div>;
};

const App = () => (
  <ThemeProvider theme={{ colors: { text: '#000000' } }}>
    <MyComponent />
  </ThemeProvider>
);

Other packages similar to @atlaskit/theme

Readme

Source

Theme

The Atlaskit theme framework, helpers, and the ADG color palette.

Keywords

FAQs

Package last updated on 08 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc